# 编译 dog 动态库
add_library(dog SHARED dog.cpp)
set_target_properties(dog PROPERTIES
    POSITION_INDEPENDENT_CODE ON
    OUTPUT_NAME "simple_dog"
    PREFIX ""
    SOVERSION 0
)

# 编译 zoo 服务端
add_executable(simple_zoo zoo.cpp)
target_link_libraries(simple_zoo dl pthread)